package com.aatrox.bhsypro.service;

import com.aatrox.bhsypro.entity.BUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface BUserService {
    //注册
    public int zc(BUser bUser);
    //登录
    public BUser dl(BUser bUser, HttpServletRequest request, HttpServletResponse response);
    //查询名称是否重复
    public Integer selUserNameIsCf(String uName);
    //根据ID查询用户
    public BUser selUserForUid(int uid);
    //根据用户ID修改用户为VIP
    public void updateUserVip(int uid);

    /**
     * 根据cookie获取用户
     * @param userTicket
     * @return
     */
    BUser getUserByCookie(String userTicket,HttpServletRequest request,HttpServletResponse response);
}
